package com.goliathonline.android.kegbot;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.util.Log;
import android.widget.Toast;

public class KegnetReceiver extends BroadcastReceiver
{
	
	@Override
	public void onReceive(Context context, Intent intent)
	{
		Uri data = intent.getData();
		String message = intent.getStringExtra("message");
		int duration = Toast.LENGTH_SHORT;
		Toast toast = Toast.makeText(context, message, duration);
		Log.d("Kegbot Receiver","Toasting");
		toast.show();
	}

}
